package main

import (
	"work/mapper"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	luyou := r.Group("/rlj")
	{

		luyou.GET("/ping", func(ctx *gin.Context) {
			ctx.JSON(200, gin.H{
				"message": "rlj-pong",
			})
		})
		luyou.POST("/create", mapper.Asset{}.Create)
		luyou.GET("/query", mapper.Asset{}.Query)

	}
	r.Run(":9000")
}
